package com.hison.mapper;

import com.hison.domian.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hison.domian.entity.SysRole;

import java.util.List;

/**
* @author hison
* @description 针对表【sys_role(角色信息表)】的数据库操作Mapper
* @createDate 2024-01-15 10:44:47
* @Entity com.hison.domian/entity.SysRole
*/
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 查询对应普通用户所具有的的角色信息\
     * @param id
     * @return {@link List}<{@link String}>
     */
    List<String> selectRoleKeyByOtherUserId(Long id);

    //修改用户-①根据id查询用户信息
    List<Long> selectRoleIdByUserId(Long userId);
}




